<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorator="layouts/layout" th:with="header='调整库存', subtext='调整指定库存数量'">

<head>
	<title>调整库存</title>
</head>
<body>
	<th:block layout:fragment="content">
		<div class="box">
			<div class="box-body">
				<form id="inventorydetailsAdjForm" name="inventorydetailsAdjForm" th:object="${m}" th:action="@{|${baseUrl}/v2/adj${m.id==null?'':'/' + m.id}|}" method="post" class="form-horizontal" novalidate="novalidate">
					<input id="id" type="hidden" name="id" th:field="*{id}" />
					<input id="version" type="hidden" name="version" th:field="*{version}" />
					<div class="row line">
						<div class="col-lg-6">
							<h3 class="page-header">基本信息</h3>
						</div>
					</div>
					
					
                  			<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-sm-3 mg-top-6 ">物料编号</label>
										<div class="col-sm-8 form-control-static">
											<input id="material.code" name="material.code" th:value="*{material.code}" maxlength="20" th:readonly="true"
											class="form-control" />
										</div>
									</div>
								</div>
						   </div>		
                  			<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-sm-3 mg-top-6 ">物料名称</label>
										<div class="col-sm-8 form-control-static">
											<input id="material.name" name="material.name" th:value="*{material.name}" maxlength="20" th:readonly="${not m.new}"
											class="form-control" />
										</div>
									</div>
								</div>
						   </div>		
                  			<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-sm-3 mg-top-6 ">批号</label>
										<div class="col-sm-8 form-control-static">
											<input id="lotno.lotattr05" name="lotno.lotattr05" th:value="*{lotno.lotattr05}" maxlength="20" th:readonly="true"
											class="form-control" />
										</div>
									</div>
								</div>
						   </div>		
                  			<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-sm-3 mg-top-6 ">库位</label>
										<div class="col-sm-8 form-control-static">
											<input id="locCode" name="locCode" th:value="*{locCode}" maxlength="20" class="form-control" readonly="true"/>
										</div>
									</div>
								</div>
						   </div>		
                  			<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-sm-3 mg-top-6 ">箱码</label>
										<div class="col-sm-8 form-control-static">
											<input id="traceNumber" name="traceNumber" th:value="*{traceNumber}" maxlength="20" th:readonly="true"
											class="form-control" />
										</div>
									</div>
								</div>
						   </div>		
                  			<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-sm-3 mg-top-6 ">原数量</label>
										<div class="col-sm-8 form-control-static">
											<input id="qty" name="qty" type="number" th:value="*{qty}" maxlength="20" th:readonly="true"
											class="form-control" />
										</div>
									</div>
								</div>
						   </div>
						<div class="row">
							<div class="col-sm-6">
								<div class="form-group">
									<label class="control-label col-sm-3 mg-top-6 ">目标数量</label>
									<div class="col-sm-8 form-control-static">
										<input id="changetoqty" name="changetoqty" type="number" th:value="*{qty}" maxlength="20" th:readonly="false"
											   class="form-control" />
									</div>
								</div>
							</div>
						</div>
						<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-sm-3 mg-top-6 ">容器编码</label>
										<div class="col-sm-8 form-control-static">
											<input id="containNumber" name="containNumber" th:value="*{containNumber}" maxlength="20" th:readonly="true"
											class="form-control" />
										</div>
									</div>
								</div>
						   </div>		
                  			<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-lg-3">收货时间</label>
										<div class="col-sm-8">
											<input id="receiveTime" name="receiveTime" th:value="${m.receiveTime != null ? #dates.format(m.receiveTime, 'yyyy-MM-dd HH:mm:ss') : ''}" th:readonly="true"
												class="form-control form_datetime dateTimePicker required" />
										</div>
									</div>
								</div>
							</div>
                  			<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-sm-3 mg-top-6 ">质检状态</label>
										<div class="col-sm-8 form-control-static">
											<input id="qualityStatus" name="qualityStatus" th:value="*{qualityStatus}" maxlength="20" th:readonly="true"
											class="form-control" />
										</div>
									</div>
								</div>
						   </div>		
                  			<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-sm-3 mg-top-6 ">冻结</label>
										<div class="col-sm-8 form-control-static">
											<input id="holdStatus" name="holdStatus" th:value="*{holdStatus}" maxlength="20" th:readonly="true"
											class="form-control" />
										</div>
									</div>
								</div>
						   </div>		
                  			<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-sm-3 mg-top-6 ">状态</label>
										<div class="col-sm-8 form-control-static">
											<input id="status" name="status" th:value="*{status}" maxlength="20" th:readonly="true"
											class="form-control" />
										</div>
									</div>
								</div>
						   </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label class="control-label col-sm-3 mg-top-6 ">状态</label>
                                    <div class="col-sm-8 form-control-static">
                                        <input id="changereason" name="changereason" maxlength="200" th:readonly="false"
                                               class="form-control" />
                                    </div>
                                </div>
                            </div>
                        </div>

                    <div class="hr-line-dashed"></div>
						   <div class="form-group">
								<div class="text-center">
									<a class="btn btn-default " th:href="@{|${baseUrl}|}"> 
									    <i class="fa fa-fw fa-reply"></i> 返回
									</a>
									<button type="submit" class="btn btn-primary">
										<i class="fa fa-fw  fa-save"></i> 确认
									</button>
								</div>
						  </div>	
				</form>
			</div>
		</div>
	</th:block>
	<th:block layout:fragment="scripts">
		<script th:replace="layouts/fragments/validatejs :: validate"></script>
		<script th:src="@{|${theme}/plugins/fullcalendar/moment.min.js?v=${applicationVersion}|}"></script>
		<script th:src="@{|${theme}/plugins/datetimepicker/bootstrap-datetimepicker.min.js?v=${applicationVersion}|}" th:inline="javascript"></script>
		<script th:src="@{|${theme}/js/inputarea.js?v=${applicationVersion}|}" th:inline="javascript"></script>
	
		<script th:inline="javascript"></script>
		<script th:src="@{|${theme}/js/app/inventory/invdetailsadj_form.js?v=${applicationVersion}|}" th:inline="javascript">
		</script>
	</th:block>
</body>

</html>